//
//  TETestViewController.m
//  TintExample
//
//  Created by Kevin Wu on 3/1/12.
//  Copyright (c) 2012 Telligenty. All rights reserved.
//

#import "TETestViewController.h"


@implementation TETestViewController



#pragma mark - UIViewController

- (void)loadView {
    [super loadView];
    
    _imageView = [[UIImageView alloc] init];
    _imageView.frame = CGRectMake(10, 100, 300, 300);
    _imageView.backgroundColor = [UIColor clearColor];
    [self.view addSubview:_imageView];
    
    self.view.backgroundColor = [UIColor lightGrayColor];
    
    [self addButtonWithTitle:@"mask" selector:@selector(doit:)];
}

- (void)viewDidLoad {
    [super viewDidLoad];
}

- (void)doit:(id)sender {
    UIImage *image = [UIImage imageNamed:@"box48.png"];
    _imageView.image = [image widthStretchableImageWithCenter:20.0];
}


@end
